home *** CD-ROM | disk | FTP | other *** search
- This file describes the porting process needed to do your own port of groff:
-
- - Unzip, untar the archive
- - Run `configure'. I needed to set the environment variable LIBS to '-lg++'.
- - Run `config.status'.
- - Patch <unistd.h> if it doesn't define optarg, opterr and optind.
- A patch is included.
- - Patch getopt.c in the mintlibs. I have included the version I used.
- The problem with the normal `getopt' is that it requires a space
- between an option and its parameter, and that groff does *not* include
- this space when calling subcommands.
- - Link, symlink or copy the math library pml.olb to m.olb.
- - Edit Makefile.lib to add the 's' parameter to ar. I have included
- the Makefile.lib I used.
- - Edit Makefile to set compiler parameters and defines. I have included
- the Makefile I used.
- - Edit gendefs.sh if needed. Editing it is needed if the compiler
- complains about `0201' characters during compilation. As I've included
- the edited version, use the edited version just to be sure.
- (Note: editing is needed because of a bug in the /bin/sh I use.)
- - Run `make'.
-
- If you don't have inifite memory, gcc will run out of memory on some files,
- notably in the troff/ subdirectory and on pic/pic.cc, tbl/table.cc
- and refer/refer.cc. Just type the command line by hand, possibly leaving
- out the -O2 option, and it will compile fine. Now try `make' again.
-
- - Run `make install'. This will install groff in the appropriate directories.
- You *did* set the paths correctly in the Makefile, I hope? Otherwise, it
- will need to recompile quite a few files...
-
- - Write wrappers for the shell scripts and perl scripts. I have included
- mine.
-
- That's it. Oh yes, I used gcc 2.3.3, the gnulibs pl 16, the pml pl 20, and
- the mintlibs pl 30. Thanks to Jhawar bammi, Eric Smith, entropy and all the
- others for making all of this possible.
-
- Bye, Hildo Biersma
-